//
//  SDHSportsNetRequest.h
//  SDHSportsNews
//
//  Created by MichaelShan on 2021/3/9.
//

#import <Foundation/Foundation.h>
@class SDHSportsRequest;

NS_ASSUME_NONNULL_BEGIN

typedef void (^ReturnValueBlock)(id obj);
typedef void (^ErrorValueBlock)(id obj);
typedef void (^FailureBlock)(void);

@interface SDHSportsNetRequest : NSObject

+ (instancetype)sharedRequest;

- (void)sendRequest:(SDHSportsRequest *)request returnValueBlock:(ReturnValueBlock)block
         errorBlock:(ErrorValueBlock)errBlock
       failureBlock:(FailureBlock)failureBlock;
- (void)postRequest:(SDHSportsRequest *)request returnValueBlock:(ReturnValueBlock)block
         errorBlock:(ErrorValueBlock)errBlock
       failureBlock:(FailureBlock)failureBlock;


@end

NS_ASSUME_NONNULL_END
